package org.wk.account.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;



/**
 * @ClassName	: SubAccount
 * @Package		：org.wk.digiccy.domain
 * @Author df.w 
 * @Create Time	：2018年5月8日 下午12:00:53
 * @Description	: 用户账户类型
 */ 
@Entity(name="org.wk.account.domain.SubAccountType")
@Table(name="sub_account_type")
public class SubAccountType extends BaseEntity{
	/**
	* @Fields serialVersionUID: long
	* @Desc TODO: 
	*/
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	private String id;
	/**
	* @Fields userName: String
	* @Desc TODO: 用户名登陆 唯一
	*/
	@Column(unique = true)
	private String typeCode;
		
	/**
	 * @Fields accountTypeCode: String
	 * @Desc TODO: 账户类型码
	 */
	@Column
	private String typeName;
	
	/**
	 * @Fields sortNo: int
	 * @Desc TODO: 排序号
	 */
	@Column
	private int sortNo;
	
	
}
